package com.bfxy.collector.web;

import com.alibaba.fastjson.JSON;
import com.bfxy.collector.entity.AccurateWatcherMessage;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @describte:TODO
 * @program:foodie-dev
 * @author:zhengdp
 * @create:2021-09-21 00:11:31
 **/
@RestController
public class WatcherController {

    @RequestMapping("/accurateWatch")
    public String watch(@RequestBody AccurateWatcherMessage message){
        String ret = JSON.toJSONString(message);
        System.err.println("----告警内容---:"+ret);
        return "is watched "+ ret;
    }
}
